package com.system.service.impl;
import com.system.mapper.CollegeMapper;
import com.system.po.College;
import com.system.po.CollegeExample;
import com.system.service.CollegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * Created by Jacey on 2017/6/30.
 */
@Service
public class CollegeServiceImpl implements CollegeService {
	@Autowired
	private CollegeMapper collegeMapper;
	public List<College> finAll() throws Exception {
		CollegeExample collegeExample = new CollegeExample();
		CollegeExample.Criteria criteria = collegeExample.createCriteria();
		criteria.andCollegeidIsNotNull();
		return collegeMapper.selectByExample(collegeExample);
	}
}
